<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
111
</body>
<script>
    window.onload = function () {
        try {
            document.write(`
           <ul>
            <li>1</li>
            <li>2</li>
        </ul>
        `)
        }catch (e) {
            console.log(e)
        }
    }
</script>
</html>